package com.ftcs.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ftcs.entity.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PermissionMapper {
    List<Permission> getPermissions(@Param("page") Page<?> page);

    Permission getPermissionByname(String permissionname);

    void addPermission(String permissionname);

    void deletePermission(int pid);

    void deleteRolePermission(int permissionid);
}
